package com.llp.javaweb.dao;

import com.llp.javaweb.mapper.LoginMapper;
import com.llp.javaweb.pojo.User;
import com.llp.javaweb.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @author llp
 * {@code @date} 2022年11月01日17:20
 */

public class LoginDao {

    public static User getUser(User user)
    {
        SqlSession sqlSession = SqlSessionUtil.getSqlSession();
        LoginMapper mapper = sqlSession.getMapper(LoginMapper.class);
        return  mapper.getUser(user);
    }
}
